#导包
from rest_framework import serializers
from mylearn.models import MylearnGoods,\
    MylearnUser,Peoples,Department,Card,MylearnIndent,CosmeticsGood,\
    CosmeticsHistory,CosmeticsUser,LifaUser,LifaGoods




# class CarouserlSer(serializers.ModelSerializer):
#     class Meta:
#         model = Department
#         fields = '__all__'

class PeoplesSer(serializers.ModelSerializer):
    class Meta:
        model = Peoples
        fields = '__all__'

class CardSer(serializers.ModelSerializer):
    class Meta:
        model = Card
        fields = '__all__'

class MylearnUserser(serializers.ModelSerializer):
    class Meta:
        model = MylearnUser
        fields = '__all__'

class MylearnGoodsser(serializers.ModelSerializer):
    class Meta:
        model = MylearnGoods
        fields = '__all__'

class MylearnIndentser(serializers.ModelSerializer):
    class Meta:
        model = MylearnIndent
        fields = '__all__'

class MylearnCosUser(serializers.ModelSerializer):
    class Meta:
        model = CosmeticsUser
        fields = '__all__'

class MylearnCosGood(serializers.ModelSerializer):
    class Meta:
        model = CosmeticsGood
        fields = '__all__'

class MylearnCosHistory(serializers.ModelSerializer):
    class Meta:
        model = CosmeticsHistory
        fields = '__all__'

# ====理发店的序列化器===========

class LifaUserSer(serializers.ModelSerializer):
    class Meta:
        model = LifaUser
        fields = '__all__'

class LifaGoodsSer(serializers.ModelSerializer):
    class Meta:
        model = LifaGoods
        fields = '__all__'
